﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RedAlert2
{
	class Program
	{
		const string PATH = "C:\\GAMES\\RA2\\";

		const string CFGFILE = PATH + "ra2.mix";

		const int TEXT = 0x070BEBD0;
		const int LENGTH = 0x071C9DB0 - TEXT;
		static void ExtractConfig()
		{
			Common.ExtractFile(CFGFILE, TEXT, LENGTH, "ra2.txt");
			Console.WriteLine("Extracted " + LENGTH + " bytes");
		}
		static void PutConfig()
		{
			Common.InsertFile(CFGFILE, TEXT, LENGTH, "ra2.txt");
		}
		static void Main(string[] args)
		{
			PutConfig();
			Console.ReadKey(true);
		}
	}
}
